#include "restartcommand.h"
#include "ProtocalIdentifier.h"
#include "NetworkCommonFunction.h"

RestartCommand::RestartCommand()
	:SenderCommand(GetProtocalIdentifier("RestartClient"))
{
}

void RestartCommand::constructCommandData(QByteArray &commandData)
{
	unsigned long commandCode = m_CommandType;
	unsigned long commandLength = 0;
	commandData.append(FBtoNetworkCharP(commandCode), sizeof(commandCode));
	commandData.append(FBtoNetworkCharP(commandLength), sizeof(commandLength));
}
